home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / pluginy Firefox / 51741 / 51741.xpi / chrome / content / lib / browser.js next >
Text File  |  2010-02-01  |  459b  |  22 lines

  1. (function()
  2. {
  3.     //returns the application name
  4.     this.getApplicationName = function ()
  5.     {
  6.         var appInfo=Components.classes["@mozilla.org/xre/app-info;1"].
  7.                         getService(Components.interfaces.nsIXULAppInfo);
  8.         return  appInfo.name
  9.     }
  10.     //returns true if the Application is SeaMonkey
  11.     this.isSeaMonkey = function()
  12.     {
  13.         if(this.getApplicationName() == 'SeaMonkey')
  14.             return true;
  15.         else
  16.             return false;
  17.     }
  18.  
  19.     return null;
  20.  
  21. }).apply(metaTitleDescriptionOnTop);
  22.